import { Component, ViewChild } from '@angular/core';
import { SlideVerifyComponent } from './slide-verify/slide-verify.component';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.less']
})
export class AppComponent {

    @ViewChild('slideVerifier1', { static: false }) slideVerifier1: SlideVerifyComponent;
    @ViewChild('slideVerifier2', { static: false }) slideVerifier2: SlideVerifyComponent;

    slide1val() {
        alert(this.slideVerifier1.isVerified());
    }

    slide2val() {
        alert(this.slideVerifier2.isVerified());
    }

    slide1reset() {
        this.slideVerifier1.resetVerify()
    }

    slide2reset() {
        this.slideVerifier2.resetVerify()
    }

}
